<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditJustificacaoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditJustificacaoLabel_idJustificacao}" for="idJustificacao" />
                    <h:inputText id="idJustificacao" value="#{justificacaoController.selected.idJustificacao}" title="#{bundle.EditJustificacaoTitle_idJustificacao}" required="true" requiredMessage="#{bundle.EditJustificacaoRequiredMessage_idJustificacao}"/>
                    <h:outputLabel value="#{bundle.EditJustificacaoLabel_detalhes}" for="detalhes" />
                    <h:inputText id="detalhes" value="#{justificacaoController.selected.detalhes}" title="#{bundle.EditJustificacaoTitle_detalhes}" required="true" requiredMessage="#{bundle.EditJustificacaoRequiredMessage_detalhes}"/>
                    <h:outputLabel value="#{bundle.EditJustificacaoLabel_dataInicial}" for="dataInicial" />
                    <h:inputText id="dataInicial" value="#{justificacaoController.selected.dataInicial}" title="#{bundle.EditJustificacaoTitle_dataInicial}" required="true" requiredMessage="#{bundle.EditJustificacaoRequiredMessage_dataInicial}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditJustificacaoLabel_dataFinal}" for="dataFinal" />
                    <h:inputText id="dataFinal" value="#{justificacaoController.selected.dataFinal}" title="#{bundle.EditJustificacaoTitle_dataFinal}" required="true" requiredMessage="#{bundle.EditJustificacaoRequiredMessage_dataFinal}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <h:commandLink action="#{justificacaoController.update}" value="#{bundle.EditJustificacaoSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditJustificacaoViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{justificacaoController.prepareList}" value="#{bundle.EditJustificacaoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditJustificacaoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
